
use "/Users/tonyaputnam/Desktop/IO Replication PUTNAM/Layering_Data_April2019 replication.dta", clear

**TO CREATE CHART

gen late_rat=.
replace late_rat=1 if earlyrat==0 & iccmember==1
replace late_rat=0 if earlyrat==0 & iccmember==0
replace late_rat=0 if earlyrat==1 & iccmember==1

**mingle_safe = whether a country had sufficient obligations in july 2002 to neutralize joining the ICC

gen mingle_safe=.
replace mingle_safe=1 if july02_exposure>=0 & earlyrat==1 & year==2002
replace mingle_safe=1 if july02_exposure>=3 & earlyrat==0 & year==2002
replace mingle_safe=0 if july02_exposure<0 & earlyrat==1 & year==2002
replace mingle_safe=0 if july02_exposure<3 & earlyrat==0 & year==2002

**mingle_safe_retro = whether a country had sufficient obligations in july 2002 to neutralize joining the ICC, but recorded on 2006 lines of data
**(hand coded)

**augmented_general = whether a state added any extradition obligations toward the United States after July 2002 
**(NOTE: this tracks agreements only -- NOT embedded ICC clauses in new or existing agreements)

gen augmented_general=0
replace augmented_general=1 if augmented_extradition==1
replace augmented_general=1 if augmented_sofa==1
replace augmented_general=1 if augmented_mlat==1

*line 1
  
list country if bnsa==0 & mingle_safe_retro==0 & augmented_general==0 & year==2006 & iccmember==0 
list country if bnsa==0 & mingle_safe_retro==0 & augmented_general==0 & year==2006 & iccmember==1

*line 2 

list country if bnsa==1 & mingle_safe_retro==0 & augmented_general==0 & year==2006 & iccmember==0 
list country if bnsa==1 & mingle_safe_retro==0 & augmented_general==0 & year==2006 & iccmember==1
 
*line 3
list country if bnsa==0 & mingle_safe_retro==1 & augmented_general==0 & year==2006 & iccmember==0
list country if bnsa==0 & mingle_safe_retro==1 & augmented_general==0 & year==2006 & iccmember==1

*line 4
list country if bnsa==1 & mingle_safe_retro==1 & augmented_general==0 & year==2006 & iccmember==0
list country if bnsa==1 & mingle_safe_retro==1 & augmented_general==0 & year==2006 & iccmember==1

*line 5
list country if bnsa==0 & mingle_safe_retro==0 & augmented_general==1 & year==2006 & iccmember==0
list country if bnsa==0 & mingle_safe_retro==0 & augmented_general==1 & year==2006 & iccmember==1

*line 6
list country if bnsa==1 & mingle_safe_retro==0 & augmented_general==1 & year==2006 & iccmember==0
list country if bnsa==1 & mingle_safe_retro==0 & augmented_general==1 & year==2006 & iccmember==1

*line 7
list country if bnsa==0 & mingle_safe_retro==1 & augmented_general==1 & year==2006 & iccmember==0
list country if bnsa==0 & mingle_safe_retro==1 & augmented_general==1 & year==2006 & iccmember==1

*line 8
list country if bnsa==1 & mingle_safe_retro==1 & augmented_general==1 & year==2006 & iccmember==0
list country if bnsa==1 & mingle_safe_retro==1 & augmented_general==1 & year==2006 & iccmember==1

*Chi2 tests

tab extradummy if year==2006
